﻿<?php
/********************************* Config File **********************************/

//涓荤恫绔椤悕绋?define("SITE_NAME", "镫嫾");
//涓荤恫绔栾嫳鏂囧悕绋?define("SITE_ENG_NAME", "lonewolf");
//涓荤恫绔椤湴鍧€
define("SITE_URL", "http://192.168.10.103/");

/************************* PLEASE DO NOT CHANGE THE CODE BELOW ***************************/
define("__ROOT__", dirname(__FILE__));
define("__INC__", __ROOT__."/includes");

$folder_path = dirname(__FILE__);
$tools_path = $_SERVER['DOCUMENT_ROOT'];
$tools_url = str_replace($tools_path, "", $folder_path);
$tools_url = "http://".$_SERVER['HTTP_HOST'].$tools_url;
define("TOOLS_URL", $tools_url);

function get_option($option)
{
	switch ($option)
    {
		case "site_name":
			if(LANG == "en_US")
            {            //濡傛灉灏忓伐鍏风偤鑻辨枃鍓囩嵅鍙栬嫳鏂囨椤岋纸LANG瀹氱京鏂糷eader.php锛?				;        return SITE_ENG_NAME;
			
            }else
            {
				return SITE_NAME;
			}
			return SITE_NAME;
		break;
		case "site_eng_name":
			return SITE_ENG_NAME;
		break;
		case "site_url":
			return SITE_URL;
		break;
		case "root_path":
			return __ROOT__;
		break;
		case "inc_path":
			return __INC__;
		break;
		case "tools_url":
			return TOOLS_URL;
		break;
	}
}
?>
